<div class="bjui-pageHeader">
    <h3>静态资源管理</h3>
</div>

<div class="bjui-pageContent">
    <div class="bjui-searchBar">
        <span style="font-size: 14px; padding: 3px;font-weight: 300"> 文件名称： </span>
        <input type="text" class="input-nm" value="${staticResourceFile.fileName!}" readonly size="50" data-rule="required;length(1~128)">
    </div>
    <br>
    <div class="bjui-searchBar">
        <form action="${ctxPath}/staticResource/upload" name="upload" enctype="multipart/form-data" method="post" data-toggle="ajaxform">
            <span style="font-size: 14px; padding: 3px;font-weight: 300"> 当前目录： </span>
            <input type="text" id="currentPath" name="currentPath" value="${staticResourceFile.parentPath!}" size="50" data-rule="required;length(1~128)">
            <br><br><br>
            <input type="file" data-rule="required;" name="files" value="" id="file" multiple>
            <br><br><br>
            <span>当前支持格式为：jpg,png,gif,css,js,mp4(50M以内)</span>
            <input type="hidden" id="filePath" name="filePath" value="${staticResourceFile.filePath!}">
        </form>
    </div>
</div>

<div class="bjui-pageFooter">
    <ul>
        <li>
            <a href="${ctxPath}/staticResource/delete?filePath=${staticResourceFile.filePath!}" class="btn btn-red" data-toggle="doajax" title="删除" data-confirm-msg="确定要删除资源吗？">删除</a>
        </li>
        <li>
            <button type="submit" class="btn-default" data-title="点击上传" data-icon="send">点击上传</button>
        </li>
    </ul>


</div>



<script type="text/javascript">

    /*function confirmSubmit() {
        var action = "${ctxPath}/staticResource/upload";
        var value = document.upload.currentPath.value.replace("\\", "/");
        $("#currentPath").val(value);
        document.upload.action = action;
        document.upload.submit();
        window.history.back();
    }*/

    /*function confirmDelete() {
        var action = "${ctxPath}/staticResource/delete";
        var value = document.upload.filePath.value.replace(/\\/g, "/");
        $("#filePath").val(value);
        document.upload.action = action;
        document.upload.submit();
    }*/
</script>